home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
rfileu10.zip
/
TEE.DOC
< prev
next >
Wrap
Text File
|
1993-05-06
|
4KB
|
104 lines
#######
# ###### ######
# # #
# ##### #####
# # #
# # #
# ###### ######
You can get part of the following documentation by invoking the program with
the switches -v, -h, or -H . See README.TXT for more information.
----------------------------------- -v ------------------------------------
TEE v1.0 -- Duplicate output to a file
Copr (c) 1992,1993 Richard Breuer. TEE is freeware. No warranties.
This is TEE/2 v1.0 - renamed to TEE (from RUTILS 4).
Author: Richard Breuer
Brunssumstrasse 6
5100 Aachen
(after Jul 1, 1993: 52074 Aachen)
Germany
Europe
Phone: +49/241/85605
Fax: +49/241/8021329
Email: ricki@pool.informatik.rwth-aachen.de (Preferred!)
----------------------------------- -h ------------------------------------
TEE v1.0 -- Duplicate output to a file
Copr (c) 1992,1993 Richard Breuer. TEE is freeware. No warranties.
Usage:
TEE [-acChHv*] outfile infile.. [{>|>>} outfile2]
Notes:
(1) outfile is required and may not contain wildcard characters
(2) TEE OVERWRITES outfile1 WITHOUT ASKING, if -a is not given!
Be careful! You have been warned! Twice!!
Options:
-a Append output to outfile. Default is overwrite
-c Binary copy mode. TEE creates an exact copy of the input files
-C Text copy mode. TEE treats input and output files as text files
-h Display this help screen
-H Display another help screen with notes and examples
-v Display version info and information about the author
-* Display internal information (for debugging purposes)
----------------------------------- -H ------------------------------------
TEE v1.0 -- Duplicate output to a file
Copr (c) 1992,1993 Richard Breuer. TEE is freeware. No warranties.
Notes:
TEE reads from stdin if a filename is -. The output is always directed
to stdout. The errorlevel is set to 1 if help has been displayed. It is set
to 255 in case of an error and 0 on normal completion. Output resulting from
multiple input files is appended to stdout. The processing order for wild-
cards depends on the order of the directory entries. TEE does work for
binary files. In text mode lines longer than 255 characters are truncated.
Examples:
TEE ALL.TXT *.TXT
Process all *.TXT files in the current directory and append them to
stdout as well as writing them to ALL.TXT. The order is the one DOS's dir
tells you.
TEE MYLIB.TPL \MYLIB\*.TPU
Creates a Turbo Pascal Library file from all TPU's in \MYLIB.
-------------------------------------------------------------------------------
Additional information:
TEE is a re-implementation of the Unix command with the same name.
4DOS users should be aware of the fact that TEE is a 4DOS command. Therefore
you must explicitly start TEE.EXE to let it run instead of 4DOS' TEE. An
alternative is, of course, to rename it.
TEE is much faster than 4DOS' TEE and works for binary files, too.
Examples:
The following examples illustrate the use of TEE:
DIR | TEE DIR.LST
displays the directory and writes (at the same time) the directory to
DIR.LST. TEE works in text mode, ie. it reads the output of dir line by
line and writes it line by line to stdout and DIR.LST
DIR | TEE DIR.LST > DIR2.LST
does principally the same as before, internally however the behaviour is
completely different. TEE detects that the output is redirected to a file
and can therefore switch to binary mode, which is faster than text mode.
DIR.LST and DIR2.LST have exactly the same contents after this call.
You may override the automatic mode detection (text or binary mode) with
the options -c (force binary) and -C (force text). See CAT.DOC for details
on how the mode is automatically set.